home *** CD-ROM | disk | FTP | other *** search
- Contained herein is a Perl library, "dnsfind.pl", and two utilities
- that use the library, "makehosts" and "find-mx".
-
- The Perl routine "dnsfind" is like the Perl "find" routine (found in
- find.pl in your Perl "lib" directory), except it is for DNS zones
- instead of your file system. "dnsfind" calls a user-supplied routine,
- "dnswanted" (just like "find" calls "wanted"), with values from all
- DNS resource records found supplied in global variables. See
- dnsfind.pl for more info.
-
- You will need two pieces of software to use dnsfind:
-
- - Perl. Version 4 or higher should be good enough.
- - dig. Version 2.0 or higher should be good enough.
-
- The two utilities would serve as good examples of how dnsfind can be
- used, but we actually do use them locally. "makehosts" generates
- our /etc/hosts and "find-mx" generates our /etc/mail/sendmail.cw.
-
- /etc/hosts is well understood, and should be generated from DNS if you
- have DNS. There are a number of other utilities in the BIND "contrib"
- directory that will do basically the same thing as "makehosts".
-
- /etc/mail/sendmail.cw is a file used by SendMail (if you have it
- configured that way) to match domains or host names that it considers
- equivalent to the local host. This is turn makes SendMail route mail
- addressed to any such domain or host name to the "local" mailer, which
- delivers the mail to a local user. Because we have a centralised mail
- hub which accepts mail for a large number of systems, we just use
- "find-mx" to locate all "highest preference" MX records which match
- our hub as the MX, and put them in /etc/mail/sendmail.cw. There are
- other ways to get SendMail to do what you want, but this was the
- neatest way for us.
-
- --
- Tim Cook
- Systems Engineer
- Computing & Communications Services
- Deakin University
- 2 Nov 1994
-